﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserMasterPage.master" AutoEventWireup="true"
    CodeFile="ChangeInfo.aspx.cs" Inherits="User_ChangeInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="border: 2px solid #eeeeed; border-radius: 5px; box-shadow: 2px 2px 10px #666;
        width: 98%">
        <div style="margin: 10px">
            <h1>
                Member Infomation
            </h1>
            <br />
            <table width="100%">
                <tr>
                    <td>
                        <p>
                            <asp:Label ID="lblGender" runat="server" Text="Gender : "></asp:Label></p>
                    </td>
                    <td>
                        <p>
                            <asp:DropDownList ID="ddlGender" runat="server">
                                <asp:ListItem>Male</asp:ListItem>
                                <asp:ListItem>Female</asp:ListItem>
                            </asp:DropDownList>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            Identity card :
                        </p>
                    </td>
                    <td>
                        <p>
                            <asp:TextBox ID="txtID" runat="server" Width="250px" Height="30px" Enabled="false"></asp:TextBox>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            <asp:Label ID="lblFullname" runat="server" Text="Fullname : "></asp:Label>
                        </p>
                    </td>
                    <td>
                        <p>
                            <asp:TextBox ID="txtFullname" runat="server" Width="250px" Height="30px"></asp:TextBox>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            <asp:Label ID="lblBirthDay" runat="server" Text="BirthDay(mm/dd/yyyy) : "></asp:Label>
                        </p>
                    </td>
                    <td>
                        <p>
                            <asp:TextBox ID="txtBirhtday" runat="server" Width="250px" Height="30px"></asp:TextBox>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            <asp:Label ID="lblPhone" runat="server" Text="Phone : "></asp:Label>
                        </p>
                    </td>
                    <td>
                        <p>
                            <asp:TextBox ID="txtPhone" runat="server" Width="250px" Height="30px"></asp:TextBox>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            <asp:Label ID="lblAddress" runat="server" Text="Address : "></asp:Label>
                        </p>
                    </td>
                    <td>
                        <p>
                            <asp:TextBox ID="txtAddress" runat="server" Width="250px" Height="30px"></asp:TextBox>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>
                            <asp:Label ID="lblEmail" runat="server" Text="Email : "></asp:Label>
                        </p>
                    </td>
                    <td>
                        <p>
                            <asp:TextBox ID="txtEmail" runat="server" Width="250px" Height="30px"></asp:TextBox>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
                        <br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Wrong email format" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ValidationGroup="checkEmail"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <p>
                            <asp:Button ID="btnUpdate" Width="100px" Height="40px" runat="server" Text="Apply"
                                OnClick="btnUpdate_Click" ValidationGroup="checkEmail" /></p>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
